//
//  ModifyPasswordOperation.m
//  PlayBall
//
//  Created by Edward Zhang on 12-5-30.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "JddModifyPasswordOperation.h"

@implementation JddModifyPasswordOperation

@synthesize oldPassword;
@synthesize password;

- (void)main{
    JddNetDataCommunication *netDataCommunication = [[JddNetDataCommunication alloc] init];
    
    NSString *bodyString = [JddParameterBuilder modifyPasswordWithOld:self.oldPassword password:self.password];
    
    NSData *dataBindCard = [netDataCommunication requestDataByPostBodyData:[bodyString dataUsingEncoding:NSUTF8StringEncoding]];
    [((NSObject*)self.delegate) performSelectorOnMainThread:@selector(ModifyPasswordOperationResult:) withObject:dataBindCard waitUntilDone:NO];    
}

@end
